/*
 * Copyright (c)  2018, Marmot
 * All rights reserved. 
 *
 * Id:PersonDao.java   2018-06-11 23:28 wanglijun
 */
package io.marmot.core;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2018
 * </p>
 * <p>
 * Company: Marmot
 * </p>
 *
 * @author: wanglijun
 * @create: 2018-06-11 23:28
 * @version：1.0
 */
public class PersonDao {
    public static PersonDao getInstance() {
        return new PersonDao ();
    }

    public List<Person> getAllPersons() {
        return Collections.EMPTY_LIST;
    }

    public Person getPerson(String key) {
        return null;
    }

    public String addPerson(Person person) {
        return person.getKey ();
    }

    public String updatePerson(Person person) {
        return person.getKey ();
    }
}
